<div id="main">
    <img src="../images/icon.jpg">
    <p>{{data}}</p>
</div>

<style>
    img{
        float: right;
        width: 100px;
        height: 100px;
    }
</style>

<script>
    new Vue({
        el: "#main",
        created:function () {
            this.getData();
        },
        data:{
            data:""
        },
        methods:{
            getData:function () {
                this.data = "hello spa"
            }
        }
    });
</script>